<?php
class Orthographe_WordCounter_Block_Adminhtml_Renderer_CorrecteurMontantPayer extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
{
	public function render(Varien_Object $row)
	{
		//pu_mot_traduction
		
		$data = $row->getData('nbr_mots')*(1*$row->getData('pu_mot_correction'));
		
		//Applique le pourcentage de remise
		if($row->getData('valid_complaint'))
			$data=$data*Mage::helper('orthographewordcounter')->getRemiseComplaint();
		
		return $data;
	}
}